<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>主页</title>
    <link rel="stylesheet" href="/jsp/css/main.css"/>
</head>
<body>
    <h1 align="center" class="title">彭鱼宴博客系统</h1>

    <h2 class="user"align="center">${userSession.userName}</h2>

    <img class="image" src="/jsp/static/img.png" alt="head">

    <div align="center">
        <form action="${pageContext.request.contextPath}/writeBlog" name="writeBlog" method="post" class="button" id="writeBlog">
            <input type="submit" value=""><br/><br/>
        </form>
        <p>写博客</p>
        <form action="${pageContext.request.contextPath}/blog/getBlog" name="browseBlog" method="post" class="button">
            <input type="submit" value=""><br/><br/>
        </form>
        <p>浏览博客</p>
        <form action="${pageContext.request.contextPath}/blog/getUserBlog/${userSession.userName}" name="userBlog" method="post" class="button">
            <input type="submit" value=""><br/><br/>
        </form>
        <p>发帖记录</p>
        <form action="${pageContext.request.contextPath}/changePwd" name="changePwd" method="post" class="button">
            <input type="submit" value=""><br/><br/>
        </form>
        <p>修改密码</p>
        <form action="${pageContext.request.contextPath}/exit" name="exit" method="post" class="button">
            <input type="submit" value=""><br/><br/>
        </form>
        <p>退出账号</p>
    </div>
</body>
</html>